package com.wanmei.mapper;

import com.wanmei.pojo.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {

    List<Product> getProductByFuzzy(@Param("likeValue") String likeValue);

    int deleteByPrimaryKey(Integer pid);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer pid);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);


    List<Object> selectAll();

    List<Product> selectProductInfoByPid(Integer pid);

    int deleteProductByPid(Integer pid);

    int updateProductInfo(@Param("record") Product record);


    int saveCidNullByCidDelete(int cid);

    int updateByExampleSelective(@Param("record") Product recorde);

    int updateByExample(@Param("record") Product record);

    List<Product> findAll();
}